import request from "../uilts/request";

// 获取员工
export function getEmployee(params) {
  return  request({
    url:"api/employee/search",
    method:"get",
    params
  })
}
// 删除员工
export function delEmployee(id) {
  return  request({
    url:"api/employee/delete/"+id,
    method:"delete"
  })
}
// 新增员工
export function addEmployee(data) {
  return  request({
    url:"api/employee/add",
    method:"POST",
    data
  })
}
//编辑员工
export function modifyEmployee(data) {
  return  request({
    url:"api/employee/modify",
    method:"put",
    data
  })
}
// 获取随机密码
// /api/employee/getPass
export function getPass() {
  return  request({
    url:"api/employee/getPass",
    method:"get"
  })
}

